package com.ft.core.utils.validate;

import com.ft.core.utils.validate.impl.NotNullAndEmptyValidatorImpl;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @copyright (C), 2015-2019, XXX有限公司
 * @fileName: NotNullAndEmpty
 * @author: 李阳
 * @date: 2019/5/14 11:09
 * @description: 不可为Null或空,包含List对象判断
 * @history: <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = NotNullAndEmptyValidatorImpl.class)
public @interface NotNullAndEmpty {

    String message() default "不可为Null或空";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
